package com.woniuxy.entity;

/**
 * @author 佘赛飞
 * @create 2021 -10 -03 7:48 PM
 */
public class Score {
    private Integer scid;
    private Integer score;
    //成绩属于一个学生
    private Stu stu;
    //成绩对应一门课程
    private Course course;

    public Score() {
    }

    public Score(Integer scid, Integer score, Stu stu, Course course) {
        this.scid = scid;
        this.score = score;
        this.stu = stu;
        this.course = course;
    }

    public void setScid(Integer scid) {
        this.scid = scid;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public void setStu(Stu stu) {
        this.stu = stu;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Integer getScid() {
        return scid;
    }

    public Integer getScore() {
        return score;
    }

    public Stu getStu() {
        return stu;
    }

    public Course getCourse() {
        return course;
    }

    @Override
    public String toString() {
        return "Score{" +
                "scid=" + scid +
                ", score=" + score +
                ", stu=" + stu +
                ", course=" + course +
                '}';
    }
}
